8555d2
@@ -2625,7 +2625,6 @@
private void analyzeAlterTablePartColType(String[] qualified, ASTNode ast)
     // Alter table ... partition column ( column newtype) only takes one column at a time.
     // It must have a column name followed with type.
     ASTNode colAst = (ASTNode) ast.getChild(0);
-    assert(colAst.getChildCount() == 2);
 
     FieldSchema newCol = new FieldSchema();
 
@@ -2637,6 +2636,10 @@
private void analyzeAlterTablePartColType(String[] qualified, ASTNode ast)
     ASTNode typeChild = (ASTNode) (colAst.getChild(1));
     newCol.setType(getTypeStringFromAST(typeChild));
 
+    if (colAst.getChildCount() == 3) {
+      newCol.setComment(unescapeSQLString(colAst.getChild(2).getText()));
+    }
+
     // check if column is defined or not
     boolean fFoundColumn = false;
     for( FieldSchema col : tab.getTTable().getPartitionKeys()) {
